package com.dw.etl.core.bean.model;

import java.io.Serializable;
import java.util.Date;

public class EtlIndexsqlDimfld implements Serializable {
    private static final long serialVersionUID = 1L;

    private String idIndexsqlDimfld;

    private String idIndexsql;

    private String idTb;

    private String idPubfld;

    private Date dtSysCre;

    private Date dtSysModi;

    public String getIdIndexsqlDimfld() {
        return idIndexsqlDimfld;
    }

    public void setIdIndexsqlDimfld(String idIndexsqlDimfld) {
        this.idIndexsqlDimfld = idIndexsqlDimfld;
    }

    public String getIdIndexsql() {
        return idIndexsql;
    }

    public void setIdIndexsql(String idIndexsql) {
        this.idIndexsql = idIndexsql;
    }

    public String getIdTb() {
        return idTb;
    }

    public void setIdTb(String idTb) {
        this.idTb = idTb;
    }

    public String getIdPubfld() {
        return idPubfld;
    }

    public void setIdPubfld(String idPubfld) {
        this.idPubfld = idPubfld;
    }

    public Date getDtSysCre() {
        return dtSysCre;
    }

    public void setDtSysCre(Date dtSysCre) {
        this.dtSysCre = dtSysCre;
    }

    public Date getDtSysModi() {
        return dtSysModi;
    }

    public void setDtSysModi(Date dtSysModi) {
        this.dtSysModi = dtSysModi;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EtlIndexsqlDimfld other = (EtlIndexsqlDimfld) that;
        return (this.getIdIndexsqlDimfld() == null ? other.getIdIndexsqlDimfld() == null : this.getIdIndexsqlDimfld().equals(other.getIdIndexsqlDimfld()))
            && (this.getIdIndexsql() == null ? other.getIdIndexsql() == null : this.getIdIndexsql().equals(other.getIdIndexsql()))
            && (this.getIdTb() == null ? other.getIdTb() == null : this.getIdTb().equals(other.getIdTb()))
            && (this.getIdPubfld() == null ? other.getIdPubfld() == null : this.getIdPubfld().equals(other.getIdPubfld()))
            && (this.getDtSysCre() == null ? other.getDtSysCre() == null : this.getDtSysCre().equals(other.getDtSysCre()))
            && (this.getDtSysModi() == null ? other.getDtSysModi() == null : this.getDtSysModi().equals(other.getDtSysModi()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdIndexsqlDimfld() == null) ? 0 : getIdIndexsqlDimfld().hashCode());
        result = prime * result + ((getIdIndexsql() == null) ? 0 : getIdIndexsql().hashCode());
        result = prime * result + ((getIdTb() == null) ? 0 : getIdTb().hashCode());
        result = prime * result + ((getIdPubfld() == null) ? 0 : getIdPubfld().hashCode());
        result = prime * result + ((getDtSysCre() == null) ? 0 : getDtSysCre().hashCode());
        result = prime * result + ((getDtSysModi() == null) ? 0 : getDtSysModi().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idIndexsqlDimfld=").append(idIndexsqlDimfld);
        sb.append(", idIndexsql=").append(idIndexsql);
        sb.append(", idTb=").append(idTb);
        sb.append(", idPubfld=").append(idPubfld);
        sb.append(", dtSysCre=").append(dtSysCre);
        sb.append(", dtSysModi=").append(dtSysModi);
        sb.append("]");
        return sb.toString();
    }
}